<?php

function _login_form() {
	$form = drupal_get_form('user_login_block');
	$form['#defaults_loaded'] = false;
	$form['name']['#required'] = false;
	$form['name']['#attributes'] = array('class' => array('clearfix'));
	$form['name']['#title'] = "Логин";
	$form['name']['#title_display'] = "after";
	$form['pass']['#required'] = false;
	$form['pass']['#title'] = "Пароль";
	$form['pass']['#title_display'] = "after";
	$form['actions']['submit']['#value'] = "Войти";
	//unset($form["links"]);
	return $form;
}

;
?>

<div id="<?php print $block_html_id; ?>" class="clearfix <?php print $classes; ?>"<?php print $attributes; ?>>
	<?php print render($title_prefix); ?>
	<?php if ($block->subject): ?>
	  <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
		<?php endif; ?>
		<?php print render($title_suffix); ?>

  <div class="content"<?php print $content_attributes; ?>>
<?php print(drupal_render(_login_form())); ?>
  </div>
</div>
